#ifndef MAINFUNCTION_H
#define MAINFUNCTION_H

#include <QMainWindow>
#include <opencv2/opencv.hpp>
using cv::Mat;

namespace Ui {
class MainFunction;
}

class MainFunction : public QMainWindow {
	Q_OBJECT
	
public:
	explicit MainFunction (QWidget *parent = nullptr);
	~MainFunction();
	
private slots:
	void on_pushButton_clicked();
	
	void on_pushButton_2_clicked();
	
	void on_pushButton_3_clicked();
	
	void on_start_camera_clicked();
	
	void on_toggle_use_5_points_toggled (bool checked);
	
	void on_toggle_use_68_points_toggled (bool checked);
	
	void on_toggle_show_iris_toggled (bool checked);
	
	void on_stop_camera_clicked();
	
private:
	Ui::MainFunction *ui;
	cv::VideoCapture camera;
	Mat current_img;
	bool use_5_points = false;
	bool use_68_points = false;
	bool show_iris = false;
};

#endif // MAINFUNCTION_H
